Add dependency header in default Cargo.toml
authorJohannes Hoff <johshoff@gmail.com>
Sun, 8 Nov 2015 03:36:06 +0000 (19:36 -0800)
committerJohannes Hoff <johshoff@gmail.com>
Sun, 8 Nov 2015 03:36:06 +0000 (19:36 -0800)
commite708411be650e2b464861e896170720de0226663
tree4cdda16a41bedc3c92848aec19d6bbfb66c358c0
parentb01770c7ad31ea24f216c578324befb4227f967c
Add dependency header in default Cargo.toml

Almost any project beyond "hello world" will have some dependencies.
Including the `[dependencies]` header by default makes this slightly
simpler.

For new users of the language, this can potentially save some
frustration since crates.io currently does not mention the header, just
the line that goes beneath it.

For all users, this makes adding the first dependency to a project less
of a special case than to subsequent dependencies.
src/cargo/ops/cargo_new.rs